#ifndef RANDOMTIMEEMITTER_H_
#define RANDOMTIMEEMITTER_H_

#include "Emitter.h"
#include "CubePileGrid.h"

class RandomTimeEmitter : public Emitter
{
	CubePileGrid * cubePiles;
	int timeSinceLastEmission, nextEmissionTime;
	int maxEmitTime, minEmitTime;
	
	void randomEmitTime();
public:
	RandomTimeEmitter(CubePileGrid * aCubePiles, int minEmitTime, int maxEmitTime);
	virtual ~RandomTimeEmitter(){}
	virtual void emit(float timeD);
	virtual void emitTo(CubePileGrid * cubePiles)=0;
	virtual bool isFinishedEmitting()=0;
	int randomInt(int low, int high);
};

#endif /*RANDOMTIMEEMITTER_H_*/
